package cn.kgc.service;

import cn.kgc.pojo.Menu;
import cn.kgc.pojo.Role;
import cn.kgc.pojo.Role_Menu;
import cn.kgc.pojo.User;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author: 张鹏飞
 * @date: 2022/1/20
 * @description:
 */
public interface userService {
    Map<String, Object> getMenu(String userCode, String userPwd);

    Page<User> selUsers(String userName);

    boolean updRole(int rId, int id);

    boolean updPassword(String userCode, String oldPassword, String newPassword);

    List<Role> selRoles();

    boolean login(String userCode, String userPwd);

    List<String> selMenu();

    boolean updRole_Menu(Integer rId, List<Integer> mIdList);

    String zpf_getUserName(String userCode, String userPwd);

    String zpf_getUserRole(String userCode, String userPwd);

    List<Menu> selMenuByRid(Integer rId);

    List<Role_Menu> selAllMenuByRid( Integer rId);


}
